package com.chsi.onjava8.stream;

import static com.chsi.onjava8.stream.Repeat.repeat;

/**
 * @Auther shikf
 * @Date 2020-06-21 16:45
 */
public class Looping {
    static void hi() {
        System.out.println("Hi!");
    }
    public static void main(String[] args) {
        repeat(3, () -> System.out.println("Looping!"));
        repeat(2, Looping::hi);
    }
}
